package com.zbw.common.mapper;

import com.zbw.common.entity.Book;
import com.zbw.common.vo.BookSpVO;
import com.zbw.common.vo.BookVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface FrontBookMapper extends BookMapper {



    /**
     * 按评分随机查询小说集合
     * @param limit 查询条数
     * @return 小说集合
     * */
    List<Book> selectIdsByScoreAndRandom(@Param("limit") int limit);

    List<BookVo> searchByPage(BookSpVO params);

}
